<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>国贸城</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>

    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="stylesheet" href="./resources/css/amazeui.min.css">
    <link rel="stylesheet" href="./resources/css/app.css">
    <link rel="stylesheet" href="./resources/css/check.css"/>
</head>
<body>
<header data-am-widget="header" class="am-header am-header-default joan-head2 ">
    <div class="am-header-left am-header-nav">
        <a href="javascript:history.back()" class="">
            <i class="am-icon-chevron-left"></i>
        </a>
    </div>
    <h1 class="am-header-title">
        <a href="" class="">订单详情</a>
    </h1>
</header>
<div class="order-num">
    <span class="order-num-l">订单编号：150928292926</span>
    <span class="order-num-r">待付款</span>
</div>
<div class="order-pay">
    <li>
        <span class="pay-sty">订单总额</span>
        <span class="weixinpay" style="color: #ff992e;">￥${sessionScope.result}</span>
    </li>
    <li>
        <span class="pay-sty">支付方式</span>
        <span class="weixinpay">微信支付 </span>
    </li>
    <li>
        <span class="pay-sty">支付状态</span>
        <span class="weixinpay">未付款 </span>
    </li>
    <li style="border: 0;">
        <span class="pay-sty">下单时间</span>
        <span class="weixinpay"><%=new SimpleDateFormat("yyyy-MM-dd-HH:mm:ss").format(new Date())%></span>
    </li>
</div>
<div class="order-text">配送信息</div>
<div class="order-pay-infor">
    <p>收货地址</p>
    <textarea name="dizhi" style="width: 480px; height: 47px" ; placeholder="请输入收件地址和收件人"></textarea>
</div>
<div class="order-pay-no">
    <span class="pay-sty">物流查询</span>
    <i class="am-icon-angle-right" style=" float:right; color: #333; "></i>
    <span class="weixinpay">暂无物流信息</span>
</div>

<div class="order-text">商品清单</div>
<c:forEach var="orderCar" items="${sessionScope.shopCar}">
    <div class="c-comment-list" style=" border-top: 1px solid #ddd;">
        <c:if test="${orderCar.name.equals('orange')}">
        <a class="o-con" href="content.jsp">
            <div class="o-con-img"><img src="./resources/images/sc.jpg"/></div>
            <div class="o-con-txt" style="padding-top: 0;"><p>南丰蜜桔 南丰贡桔</p>
                <p style="color: #afafaf;">12个装</p></div>
            <div class="o-con-much"><h4>x
                ${orderCar.number}
            </h4></div>
            <div class="agoprice" style="margin-left: 2%;">￥<span>
                ${orderCar.price}
            </span></div>
        </a>
        </c:if>
        <c:if test="${orderCar.name.equals('apple')}">
            <a class="o-con" href="contentApple.jsp">
                <div class="o-con-img"><img src="./resources/images/apple.jpg"/></div>
                <div class="o-con-txt" style="padding-top: 0;"><p>甘肃红富士</p>
                    <p style="color: #afafaf;">12个装</p></div>
                <div class="o-con-much"><h4>x
                        ${orderCar.number}
                </h4></div>
                <div class="agoprice" style="margin-left: 2%;">￥<span>
                        ${orderCar.price}
                </span></div>
            </a>
        </c:if>
    </div>
</c:forEach>>
<div class="order-text">发票信息</div>
<div class="order-pay-no" style="border-top: 1px solid #ddd;">
    <span class="pay-sty">发票抬头</span>
</div>
<div class="order-text">价格清单</div>
<div class="order-pay" style="margin-top: 0;">
    <li>
        <span class="pay-sty">商品总价</span>
        <span class="weixinpay" style="color: #ff992e;">￥${sessionScope.result}</span>
    </li>
    <li>
        <span class="pay-sty">运费</span>
        <span class="weixinpay" style="color: #ff992e;">￥0.0 </span>
    </li>
    <li>
        <span class="pay-sty">积分抵扣</span>
        <span class="weixinpay">-￥0.0
<%--            <c:if test="${sessionScope.result-sessionScope.member.integral>=0}">&lt;%&ndash;价格减去积分大于0&ndash;%&gt;--%>
<%--         ${sessionScope.member.integral} &lt;%&ndash;显示积分&ndash;%&gt;--%>
<%--        </c:if>--%>
<%--            <c:if test="${sessionScope.result-sessionScope.member.integral<0}">&lt;%&ndash;价格减去积分小于0&ndash;%&gt;--%>
<%--                ${sessionScope.result} &lt;%&ndash;显示价格&ndash;%&gt;--%>
<%--            </c:if>--%>
        </span>
    </li>
    <li style="border: 0;">
        <span class="pay-sty">优惠劵抵扣</span>
        <span class="weixinpay">-￥0.0</span>
    </li>
    <li style="border: 0;">
        <span class="pay-sty">总计</span>
<%--        <c:if test="${sessionScope.result-sessionScope.member.integral>=0}">--%>
<%--        <span class="weixinpay">￥${sessionScope.result-sessionScope.member.integral}</span> &lt;%&ndash;价格-积分>0&ndash;%&gt;--%>
                <span class="weixinpay">￥${sessionScope.result}</span> <%--价格-积分>0--%>
<%--        </c:if>--%>
<%--        <c:if test="${sessionScope.result-sessionScope.member.integral<0}">--%>
<%--            <span class="weixinpay">￥0.0</span>&lt;%&ndash;价格-积分<0&ndash;%&gt;--%>
<%--        </c:if>--%>
    </li>
</div>


<div class="order-message">订单留言</div>
<div class="orderprice">
    <a href="shopcar.jsp" class="order-pay-1">取消订单</a>
<%--    <c:if test="${sessionScope.result-sessionScope.member.integral>=0}">--%>
        <a href="orderServlet.do?pay=${sessionScope.result}" class="order-pay-2">提交订单</a>
<%--    </c:if>--%>
<%--    <c:if test="${sessionScope.result-sessionScope.member.integral<0}">--%>
<%--        <a href="orderServlet?pay=0&&jifen=${sessionScope.result}" class="order-pay-2">提交订单</a>--%>
<%--    </c:if>--%>
</div>
</body>
</html>

